class CreateHistories < ActiveRecord::Migration
  def self.up
    create_table :histories do |t|
      t.integer :core_id, :limit => 20
      t.string :core_url
      t.string :core_name
      t.string :core_colors, :limit => 50
      t.integer :forum_message_id, :limit => 20
      t.string :forum_topic_title
      t.integer :forum_topic_id, :limit => 20
      t.integer :user_id, :limit => 20, :null => false
      t.string :user_url
      t.integer :passage_id, :limit => 20
      t.integer :multimedia_id, :limit => 20
      t.integer :album_id, :limit => 20
      t.string :album_name
      t.string :action 
      t.timestamps
    end
  end

  def self.down
    drop_table :histories
  end
end
